package cn.topevery.garden.entity.po;

import cn.topevery.garden.framework.base.BaseEntity;
import hw.topevery.framework.annotation.DbTable;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import lombok.Data;

import java.util.List;

/**
 * 综合评价标准定义表
 *
 * @author code-generate
 * @date 2022-01-07
 */
@Data
@DbTable(tableName = "t_criterion_def")
public class CriterionDef extends BaseEntity {
        /**
     * uuid
     */
    @DbTableField(columnName = "c_criterion_id", dbType = DbTypeEnum.VARCHAR)
    public String criterionId ;

    /**
     * 标准项
     */
    @DbTableField(columnName = "c_criterion_name", dbType = DbTypeEnum.VARCHAR)
    public String criterionName ;

    /**
     * 父uuid
     */
    @DbTableField(columnName = "c_criterion_pid", dbType = DbTypeEnum.VARCHAR)
    public String criterionPid ;

    /**
     * 关联标准uuid
     */
    @DbTableField(columnName = "c_relation_id", dbType = DbTypeEnum.VARCHAR)
    public String relationId ;

    /**
     * 关系类型 1: 与 2：或
     */
    @DbTableField(columnName = "c_relation_type", dbType = DbTypeEnum.INTEGER)
    public Integer relationType ;

    /**
     * 是否叶子节点 0：是 1：否
     */
    @DbTableField(columnName = "c_is_leaf", dbType = DbTypeEnum.INTEGER)
    public Integer isLeaf ;

    /**
     * 层级
     */
    @DbTableField(columnName = "c_layer", dbType = DbTypeEnum.INTEGER)
    public Integer layer ;

    /**
     * 是否核心指标，0：是 1：否
     */
    @DbTableField(columnName = "c_is_core_indicator", dbType = DbTypeEnum.INTEGER)
    public Integer isCoreIndicator ;

    /**
     * 是否参与评价，0：是 1：否
     */
    @DbTableField(columnName = "c_is_partake_evaluation", dbType = DbTypeEnum.INTEGER)
    public Integer isPartakeEvaluation ;

    /**
     * 排序
     */
    @DbTableField(columnName = "c_order_num", dbType = DbTypeEnum.INTEGER)
    public Integer orderNum ;

    /**
     * 是否扩展 0：是 1：否
     */
    @DbTableField(columnName = "c_is_expand", dbType = DbTypeEnum.INTEGER)
    public Integer isExpand ;

    /**
     * 标准项类型（字典表）
     */
    @DbTableField(columnName = "c_type", dbType = DbTypeEnum.INTEGER)
    public Integer type ;

    /**
     * 公式
     */
    @DbTableField(columnName = "c_expression", dbType = DbTypeEnum.VARCHAR)
    public String expression ;

    /**
     * 备注
     */

    public String typeStr ;

    public String expressionStr ;

    public List<CriterionExpand> expandList;

    public List<CriterionEvaluation> evaluationList;

}
